﻿#include "Tao.h"
#include "Lunar.h"

Tao::Tao(Lunar& lunar)
{
	_luanr = &lunar;
}


Tao* Tao::FromLunar(Lunar& lunar)
{
	return new Tao(lunar);
}

Tao* Tao::FromYmdHms(int year, int month, int day, int hour, int minute, int second)
{
	return FromLunar(*Lunar::FromYmdHms(year + BIRTH_YEAR, month, day, hour, minute, second));
}